package com.sonicvision.resourcetracker.employee;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import com.sonicvision.resourcetracker.exceptions.DAOException;

@Repository
public class EmpAddressDAOJPAImpl implements EmployeeAddressDAO {

	@PersistenceContext
	private EntityManager em;

	@Override
	public void addEmpAddress(EmployeeAddress employeeAddress)
			throws DAOException {

		em.persist(employeeAddress);

	}

}
